<?php

/**
 * Development configuration
 * Usage:
 * - Local website
 * - Local DB
 * - Show all details on each error
 * - Gii module enabled
 */
$dirname = dirname(__FILE__);

return array(
	// Set yiiPath (relative to Environment.php)
	'yiiPath'=>'/PortableApps/yii/framework/yii.php',
	'yiicPath'=>'/PortableApps/yii/framework/yiic.php',
	'yiitPath'=>'/PortableApps/yii/framework/yiit.php',
	// Set YII_DEBUG and YII_TRACE_LEVEL flags
	'yiiDebug'=>true,
	'yiiTraceLevel'=>3,
	// Static function Yii::setPathOfAlias()
	'yiiSetPathOfAlias'=>array(
	// uncomment the following to define a path alias
	//'local' => 'path/to/local-folder'
	),
	// This is the specific Web application configuration for this mode.
	// Supplied config elements will be merged into the main config array.
	'configWeb'=>array(
		'theme'=>'classic',
//		'language'=>'id',
		// Modules
		'modules'=>array(
			'gii'=>array(
				'class'=>'system.gii.GiiModule',
				'password'=>false,
				'generatorPaths'=>array(
					'bootstrap.gii'
				),
			),
		),
		// Application components
		'components'=>array(
			// Database
			'db'=>array(
				'connectionString'=>"sqlite:$dirname/../data/development.db",
			),
			// Application Log
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					// Save log messages on file
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning, trace, info',
					),
				// Show log messages on web pages
//					array(
//						'class'=>'CWebLogRoute',
//						//'categories' => 'system.db.CDbCommand', //queries
//						'levels'=>'error, warning, trace, info',
//						'showInFireBug'=>true,
//					),
				),
			),
		),
	),
	// This is the Console application configuration. Any writable
	// CConsoleApplication properties can be configured here.
	// Leave array empty if not used.
	// Use value 'inherit' to copy from generated configWeb.
	'configConsole'=>array(
	),
);